package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Quality_Item", description = "检验项目实体")
@TableName(value = "Quality_Item")
public class QualityItem extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[检验项目名称]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("检验项目名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "itemName")
    private String itemName;
    
    @NotNull(message="[检验项目类别]不能为空")
    @ApiModelProperty("检验项目类别")
    @TableField(value = "itemType")
    private Long itemType;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("检验项目描述")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "itemDesc")
    private String itemDesc;
    
    @NotNull(message="[控件类型]不能为空")
    @ApiModelProperty("控件类型")
    @TableField(value = "controlType")
    private Long controlType;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("规格线最大值")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "specsMaximum")
    private String specsMaximum;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("规格线最大值")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "specsMinimum")
    private String specsMinimum;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("控制线最大值")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "controlMaximum")
    private String controlMaximum;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("控制线最小值")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "controlMinimum")
    private String controlMinimum;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("标准值")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "standard")
    private String standard;
    
    @NotNull(message="[拍照标识]不能为空")
    @ApiModelProperty("拍照标识")
    @TableField(value = "picFlag")
    private Long picFlag;






}

